import request from '@/assets/js/ajax'
// --------------创业就业模块-----------------  //


// 残疾人就业工作类别
export function apiCategoryList (data) {
  return request({
    method: 'post',
    url: '/entrepreneurial/jobcategory/categoryList',
  })
}

// 就业职位列表
export function apiEmploymentList (data) {
  return request({
    method: 'post',
    url: '/entrepreneurial/comjob/homeJobTop4?trade=' + data.trade,
  })
}

// 名企招聘列表
export function apiRecommedList (data) {
  return request({
    method: 'post',
    url: '/entrepreneurial/cominfo/homeRecommedList?pageSize=' + data.pageSize + '&pageIndex=' + data.pageIndex,
    params: {
      comType: 1
    }
  })
}

// 残疾人创业
export function apiBusinessList (data) {
  return request({
    method: 'post',
    url: '/entrepreneurial/iteminfo/list/home?pageSize=' + data.pageSize + '&pageIndex=' + data.pageIndex,
  })
}

// 信息库
export function apiInformationList (data) {
  return request({
    method: 'post',
    url: '/news/msginfo/list/msg/home?',
  })
}

// 查询投递职位
export function apiDeliveryList (data) {
  return request({
    method: 'post',
    url: '/entrepreneurial/resumedelivery/deliveryList',
  })
}

// 推荐职位--登录状态
export function apiRecomList (data) {
  return request({
    method: 'post',
    url: '/entrepreneurial/comjob/homeRecomList?pageSize=' + data.pageSize + '&pageIndex=' + data.pageIndex,
  })
}

// 急招职位--未登录状态
export function apiUrgentJobList (data) {
  return request({
    method: 'post',
    url: '/entrepreneurial/comjob/urgentJobList?pageSize=' + data.pageSize + '&pageIndex=' + data.pageIndex,
  })
}


export function apisaveVideo (data) {
  return request({
    method: 'post',
    url: '/educational/coursestudyrate/save',
    params:data
  })
}
export function totalrate (data) {
  return request({
    method: 'post',
    url: '/educational/coursestudyrate/totalrate',
    params:data
  })
}

// 生成证书
export function selCertificate (data) {
  return request({
    method: 'post',
    url: '/user/certificateinfo/save',
    params:data
  })
}
